﻿using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace NTQOnlineExam.Services.EntityFW.Entity
{
    public class Year
    {
        public int Id { get; set; }
        public string Name { get; set; }
    }

    public class YearMap : EntityTypeConfiguration<Year>
    {
        public YearMap()
        {
            this.HasKey(t => t.Id);
            this.Property(t => t.Id).HasDatabaseGeneratedOption(DatabaseGeneratedOption.Identity);
            this.ToTable("Year");
        }
    }
}



